import Vue from "vue";
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes=[
    {
        path:'/',
        name:'recommend',
        component:()=>import('../views/Recommend'),
        meta:{title:'',showNav:true}
    },
    {
        path: '/hot',
        component:()=>import('../views/Hot'),
        meta: {title: '',showNav: true}
    },
    {
        path: '/search',
        component: () => import('../views/Search'),
        meta: {title: '',showNav: true}
    },
    {
        path:'/playlist/:id',
        component:()=>import('../views/PlayList'),
        meta:{title: '',showNav: true}
    },
    {
        path:'/Comment',
        component: ()=>import('../components/Comment'),
        meta:{title: '',showNav: true}
    },
    {
        path:'/song',
        component: ()=>import('../views/Song'),
        meta:{title: '',showNav: true}
    },
    {
        path:'/songlist/:id',
        component: ()=>import('../views/Songlist'),
        meta:{title: '',showNav: true}
    },
    {
        path:'/songmvie/:id',
        component: ()=>import('../views/Songmovie'),
        meta:{title: '',showNav: true}
    },



]

const router=new VueRouter({
    mode:'hash',
    base:process.env.BABEL_ENV,
    routes
})

export default router